package com.itheima.wemedia.feign;

import com.itheima.common.pojo.Result;
import com.itheima.core.feign.CoreFeign;
import com.itheima.wemedia.pojo.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-wemedia",path = "/wmUser")
public interface WmUserFeign extends CoreFeign<WmUser> {
    /**
     * 根据用户id查询自媒体
     */
    @GetMapping("/one/{apUserId}")
    Result<WmUser> getByUserId(@PathVariable Integer apUserId);

}
